<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div.outer{
           width: 500px;
           height: 400px;
           /* background-color: red; */
           margin:0 auto;
           overflow: hidden;
        }
        div.outer .move{
            width: 2500px;
            height: 400px;
            animation-name: move;
            animation-duration: 10s;
            animation-timing-function: steps(5);
            animation-iteration-count: infinite;
        }
        div.outer .move img{
            width: 500px;
            height: 400px;
            float: left;
        }
        @keyframes move{
            from{
               margin-left: 0px;
            }
            to{
                margin-left: -2500px;
            }
        }
    </style>
</head>
<body>
    <div class="outer">
        <div class="move">
            <img src="./index.jpg" >
            <img src="./大脸猫.jpg" >
            <img src="./柯基.jpg" >
            <img src="./狗.jpg" >
            <img src="./猫.jpg" >
        </div>
    </div>
</body>
</html>